package com.bjpowernode.crm.workbench.mapper;

import com.bjpowernode.crm.workbench.domain.ClueActivityRelation;

import java.util.List;

public interface ClueActivityRelationMapper {
    int deleteByPrimaryKey(String id);

    int insert(ClueActivityRelation record);

    int insertSelective(ClueActivityRelation record);

    ClueActivityRelation selectByPrimaryKey(String id);

    int updateByPrimaryKeySelective(ClueActivityRelation record);

    int updateByPrimaryKey(ClueActivityRelation record);

    void insertBindActivity(List<ClueActivityRelation> clueActivityRelationList);

    /**
     * // 获取线索与市场活动的关系
     * @param clueId
     * @return
     */
    List<ClueActivityRelation> selectClueActivityRelationListByClueId(String clueId);

    /**
     * // 删除线索与市场活动关系的记录
     * @param clueId
     */
    int deleteClueActivityRelationByClueId(String clueId);
}
